package org.csu.jpetstorespringversion.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.stereotype.Repository;

@Data
@Repository
//映射数据库
@TableName("product")
public class Product {
    @TableId(value = "productid", type = IdType.AUTO)
    private String productid;
    @TableField(value = "category")
    private String category;
    @TableField(value = "name")
    private String name;
    @TableField(value = "descn")
    private String descn;
}
